package mod.luckymod.items;

import mod.luckymod.Materials.ModArmorMaterials;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.item.ArmorMaterial;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.TooltipFlag;
import net.minecraft.world.level.Level;

import java.util.List;

import static mod.luckymod.Luckymod.asResource;

public class SodiumEquipment extends BaseArmorItem{
   public static final ArmorMaterial sodium =  ModArmorMaterials.SOUDIM;
    public static final ResourceLocation texture = asResource("sodium");
    public SodiumEquipment(Type type, Properties properties) {
        super(sodium, type, properties, texture);
    }
    @Override
    public void appendHoverText(ItemStack stack, Level level,
                                List<Component> tooltip, TooltipFlag flag) {
        super.appendHoverText(stack, level, tooltip, flag);
        tooltip.add(Component.literal("当你穿上全套的钠盔甲时，你会免受爆炸伤害")
                .withStyle(ChatFormatting.GREEN));
        tooltip.add(Component.literal("禁止穿着钠盔甲下水，否则后果自负！")
                .withStyle(ChatFormatting.RED));
    }
}
